feat: add auto-commit functionality with customizable git commit args#21
Merged
fslongjin merged 4 commits intofslongjin:masterfrom Feb 24, 2026
Merged
Conversation
- Add `--commit` and `--commit-args` CLI options - Add `auto_commit` and `commit_args` config fields - Execute `git commit` automatically after message generation Signed-off-by: staryxchen <staryxchen@tencent.com>
- Update version in Cargo.toml and Cargo.lock - Update installation version in README files Signed-off-by: staryxchen <staryxchen@tencent.com>
a64a0b5 to
eab863b
Compare
- Add documentation for `-c, --commit` and `--commit-args` options - Add usage examples for auto-commit functionality Signed-off-by: staryxchen <staryxchen@tencent.com>
- Remove trailing comma in `commit_args` attribute definition Signed-off-by: staryxchen <staryxchen@tencent.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
--commit/-cCLI flag to automatically rungit commitafter generating the commit message--commit-argsCLI option to pass extra arguments togit commit(e.g.-s,--no-verify), supports hyphen-prefixed valuesauto_commitandcommit_argsfields in config file for persistent defaultsUsage
Config file (
~/.fastcommit/config.toml):Fastcommit is now truly “fast.”